﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000043 RID: 67
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AddRelicFilterPlanCsReq : IMessage<AddRelicFilterPlanCsReq>, IMessage, IEquatable<AddRelicFilterPlanCsReq>, IDeepCloneable<AddRelicFilterPlanCsReq>, IBufferMessage
	{
		// Token: 0x170000CD RID: 205
		// (get) Token: 0x060002E8 RID: 744 RVA: 0x000092DB File Offset: 0x000074DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AddRelicFilterPlanCsReq> Parser
		{
			get
			{
				return AddRelicFilterPlanCsReq._parser;
			}
		}

		// Token: 0x170000CE RID: 206
		// (get) Token: 0x060002E9 RID: 745 RVA: 0x000092E2 File Offset: 0x000074E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AddRelicFilterPlanCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170000CF RID: 207
		// (get) Token: 0x060002EA RID: 746 RVA: 0x000092F4 File Offset: 0x000074F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AddRelicFilterPlanCsReq.Descriptor;
			}
		}

		// Token: 0x060002EB RID: 747 RVA: 0x000092FB File Offset: 0x000074FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AddRelicFilterPlanCsReq()
		{
		}

		// Token: 0x060002EC RID: 748 RVA: 0x00009310 File Offset: 0x00007510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AddRelicFilterPlanCsReq(AddRelicFilterPlanCsReq other) : this()
		{
			this.isMarked_ = other.isMarked_;
			this.settings_ = ((other.settings_ != null) ? other.settings_.Clone() : null);
			this.avatarIdOnCreate_ = other.avatarIdOnCreate_;
			this.name_ = other.name_;
			this.icon_ = ((other.icon_ != null) ? other.icon_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060002ED RID: 749 RVA: 0x00009390 File Offset: 0x00007590
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AddRelicFilterPlanCsReq Clone()
		{
			return new AddRelicFilterPlanCsReq(this);
		}

		// Token: 0x170000D0 RID: 208
		// (get) Token: 0x060002EE RID: 750 RVA: 0x00009398 File Offset: 0x00007598
		// (set) Token: 0x060002EF RID: 751 RVA: 0x000093A0 File Offset: 0x000075A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMarked
		{
			get
			{
				return this.isMarked_;
			}
			set
			{
				this.isMarked_ = value;
			}
		}

		// Token: 0x170000D1 RID: 209
		// (get) Token: 0x060002F0 RID: 752 RVA: 0x000093A9 File Offset: 0x000075A9
		// (set) Token: 0x060002F1 RID: 753 RVA: 0x000093B1 File Offset: 0x000075B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanSettings Settings
		{
			get
			{
				return this.settings_;
			}
			set
			{
				this.settings_ = value;
			}
		}

		// Token: 0x170000D2 RID: 210
		// (get) Token: 0x060002F2 RID: 754 RVA: 0x000093BA File Offset: 0x000075BA
		// (set) Token: 0x060002F3 RID: 755 RVA: 0x000093C2 File Offset: 0x000075C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarIdOnCreate
		{
			get
			{
				return this.avatarIdOnCreate_;
			}
			set
			{
				this.avatarIdOnCreate_ = value;
			}
		}

		// Token: 0x170000D3 RID: 211
		// (get) Token: 0x060002F4 RID: 756 RVA: 0x000093CB File Offset: 0x000075CB
		// (set) Token: 0x060002F5 RID: 757 RVA: 0x000093D3 File Offset: 0x000075D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				return this.name_;
			}
			set
			{
				this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170000D4 RID: 212
		// (get) Token: 0x060002F6 RID: 758 RVA: 0x000093E6 File Offset: 0x000075E6
		// (set) Token: 0x060002F7 RID: 759 RVA: 0x000093EE File Offset: 0x000075EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanIcon Icon
		{
			get
			{
				return this.icon_;
			}
			set
			{
				this.icon_ = value;
			}
		}

		// Token: 0x060002F8 RID: 760 RVA: 0x000093F7 File Offset: 0x000075F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AddRelicFilterPlanCsReq);
		}

		// Token: 0x060002F9 RID: 761 RVA: 0x00009408 File Offset: 0x00007608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AddRelicFilterPlanCsReq other)
		{
			return other != null && (other == this || (this.IsMarked == other.IsMarked && object.Equals(this.Settings, other.Settings) && this.AvatarIdOnCreate == other.AvatarIdOnCreate && !(this.Name != other.Name) && object.Equals(this.Icon, other.Icon) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060002FA RID: 762 RVA: 0x00009490 File Offset: 0x00007690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsMarked)
			{
				num ^= this.IsMarked.GetHashCode();
			}
			if (this.settings_ != null)
			{
				num ^= this.Settings.GetHashCode();
			}
			if (this.AvatarIdOnCreate != 0U)
			{
				num ^= this.AvatarIdOnCreate.GetHashCode();
			}
			if (this.Name.Length != 0)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this.icon_ != null)
			{
				num ^= this.Icon.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060002FB RID: 763 RVA: 0x0000952F File Offset: 0x0000772F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060002FC RID: 764 RVA: 0x00009537 File Offset: 0x00007737
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060002FD RID: 765 RVA: 0x00009540 File Offset: 0x00007740
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarIdOnCreate != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AvatarIdOnCreate);
			}
			if (this.icon_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Icon);
			}
			if (this.Name.Length != 0)
			{
				output.WriteRawTag(82);
				output.WriteString(this.Name);
			}
			if (this.IsMarked)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.IsMarked);
			}
			if (this.settings_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Settings);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060002FE RID: 766 RVA: 0x000095F4 File Offset: 0x000077F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsMarked)
			{
				num += 2;
			}
			if (this.settings_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Settings);
			}
			if (this.AvatarIdOnCreate != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarIdOnCreate);
			}
			if (this.Name.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this.icon_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Icon);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060002FF RID: 767 RVA: 0x0000968C File Offset: 0x0000788C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AddRelicFilterPlanCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsMarked)
			{
				this.IsMarked = other.IsMarked;
			}
			if (other.settings_ != null)
			{
				if (this.settings_ == null)
				{
					this.Settings = new RelicFilterPlanSettings();
				}
				this.Settings.MergeFrom(other.Settings);
			}
			if (other.AvatarIdOnCreate != 0U)
			{
				this.AvatarIdOnCreate = other.AvatarIdOnCreate;
			}
			if (other.Name.Length != 0)
			{
				this.Name = other.Name;
			}
			if (other.icon_ != null)
			{
				if (this.icon_ == null)
				{
					this.Icon = new RelicFilterPlanIcon();
				}
				this.Icon.MergeFrom(other.Icon);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000300 RID: 768 RVA: 0x0000974D File Offset: 0x0000794D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000301 RID: 769 RVA: 0x00009758 File Offset: 0x00007958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 16U)
					{
						this.AvatarIdOnCreate = input.ReadUInt32();
						continue;
					}
					if (num == 42U)
					{
						if (this.icon_ == null)
						{
							this.Icon = new RelicFilterPlanIcon();
						}
						input.ReadMessage(this.Icon);
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						this.Name = input.ReadString();
						continue;
					}
					if (num == 88U)
					{
						this.IsMarked = input.ReadBool();
						continue;
					}
					if (num == 114U)
					{
						if (this.settings_ == null)
						{
							this.Settings = new RelicFilterPlanSettings();
						}
						input.ReadMessage(this.Settings);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040000FA RID: 250
		private static readonly MessageParser<AddRelicFilterPlanCsReq> _parser = new MessageParser<AddRelicFilterPlanCsReq>(() => new AddRelicFilterPlanCsReq());

		// Token: 0x040000FB RID: 251
		private UnknownFieldSet _unknownFields;

		// Token: 0x040000FC RID: 252
		public const int IsMarkedFieldNumber = 11;

		// Token: 0x040000FD RID: 253
		private bool isMarked_;

		// Token: 0x040000FE RID: 254
		public const int SettingsFieldNumber = 14;

		// Token: 0x040000FF RID: 255
		private RelicFilterPlanSettings settings_;

		// Token: 0x04000100 RID: 256
		public const int AvatarIdOnCreateFieldNumber = 2;

		// Token: 0x04000101 RID: 257
		private uint avatarIdOnCreate_;

		// Token: 0x04000102 RID: 258
		public const int NameFieldNumber = 10;

		// Token: 0x04000103 RID: 259
		private string name_ = "";

		// Token: 0x04000104 RID: 260
		public const int IconFieldNumber = 5;

		// Token: 0x04000105 RID: 261
		private RelicFilterPlanIcon icon_;
	}
}
